Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions for Editing Movies / Editing Tracks


ScaleTrackSegment

The ScaleTrackSegment function changes the duration of a segment of a track. This may change the duration of the movie that contains the track. However, this function does not cause the Movie Toolbox to add data to or remove data from the movie.

pascal OSErr ScaleTrackSegment (Track theTrack, TimeValue in, 
                                 TimeValue oldDuration,
                                 TimeValue newDuration);
theTrack
Specifies the track for this operation. Your application obtains this track identifier from such Movie Toolbox functions as NewMovieTrack and GetMovieTrack (described on page 2-136 and page 2-188, respectively).
in
Specifies the start of the segment. The oldDuration parameter specifies the segment's duration. This time value must be expressed in the time scale of the movie that contains the track.
oldDuration
Specifies the duration of the segment. This time value must be expressed in the time scale of the movie that contains the track.
newDuration
Specifies the new duration of the segment. This time value must be expressed in the time scale of the movie that contains the track. The function alters the segment to accommodate the new duration.
ERROR CODES
invalidTrack-2009This track is corrupted or invalid
invalidDuration-2014This duration value is invalid
invalidTime-2015This time value is invalid
Memory Manager errors


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996